<template>
	<view class="margin-tb">
		<view class="cu-list menu text-left solid-top">
			<view class="cu-item arrow" @click="logout">
				<text class="cuIcon-exit margin-right"></text>
				<view class="content"><text class="text-grey">注销登录</text></view>
				<view class="action"></view>
			</view>
			<view class="cu-item arrow" @click="navTo('./chgpass')">
				<text class="cuIcon-lock margin-right"></text>
				<view class="content"><text class="text-grey">修改密码</text></view>
				<view class="action"></view>
			</view>
		</view>
	</view>
</template>

<script>
export default {
	data() {
		return {};
	},
	methods: {
		navTo: function(url) {
			uni.navigateTo({
				url: url
			});
		},
		logout: function() {
			this.$utils.showModal(
				'确认退出？',
				() => {
					this.$utils.logout();
				},
				true
			);
		}
	}
};
</script>

<style lang="scss" scoped></style>
